package com.platform.service.impl;

import com.platform.dao.UserVideoDao;
import com.platform.entity.UserVideoEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.service.UserVideoService;

/**
 * 会员视频管理Service实现类
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-07-02 01:49:42
 */
@Service("userVideoService")
public class UserVideoServiceImpl implements UserVideoService {
    @Autowired
    private UserVideoDao apiUserVideoDao;

    @Override
    public UserVideoEntity queryObject(Long id) {
        return apiUserVideoDao.queryObject(id);
    }

    @Override
    public List<UserVideoEntity> queryList(Map<String, Object> map) {
        return apiUserVideoDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return apiUserVideoDao.queryTotal(map);
    }

    @Override
    public int save(UserVideoEntity apiUserVideo) {
        return apiUserVideoDao.save(apiUserVideo);
    }

    @Override
    public int update(UserVideoEntity apiUserVideo) {
        return apiUserVideoDao.update(apiUserVideo);
    }

    @Override
    public int delete(Long id) {
        return apiUserVideoDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return apiUserVideoDao.deleteBatch(ids);
    }
}
